package com.faeple.hacklog.service;
import java.util.HashMap;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.faeple.hacklog.dao.HackLogDao;

@Service
public class HackLogServiceImpl implements HackLogService {

	@Autowired
	private HackLogDao hackLogDao; 
	
	@Override
	public void writeHackLog(String userNum, String ip, String content) {
		HashMap<String, String> map = new HashMap<String, String>();
		map.put("userNum", userNum);
		map.put("ip", ip);
		map.put("content", content);
		hackLogDao.writeHackLog(map);
	}

}
